import { strokeArc } from "@/utils/common"

export default class Endpoint {
  constructor(x, y) {
    this.x = x
    this.y = y
    this.r = 4
  }

  draw(ctx) {
    strokeArc(ctx, this.x, this.y, this.r, 0, Math.PI)
  }

  setXY(x, y) {
    this.x = x
    this.y = y
  }
}